Class PPPoeClientImpl

All Implemented Interfaces:
IPCObject, PPPoeClient, Process

public class PPPoeClientImpl extends ProcessImpl implements PPPoeClient
Information provided by the PKI file:

    \class PppoeClient
    
    \brief PppoeClient handles and manipulates the PPPoE client.
    
    \example network().getDevice("PC0").getProcess("PppoeClient")
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • setUsername

      public void setUsername(String userName)
      Information provided by the PKI file:
      
          \brief Sets the username.
          
          \param userName, the username.
          
              
      Specified by:
      setUsername in interface PPPoeClient
      Parameters:
      userName - Takes in a parameter of userName
    • setConnectionStatus

      public void setConnectionStatus(PPPoeConnectionStatus status)
      Information provided by the PKI file:
      
          \brief Sets the status.
          
          \param status,      the status types: eConnected = 0,
          eConnecting = 1,
          ePoolRejected = 2,
          eDisconnected = 3,
          eTimeout = 4,
          eNoKeepAlive = 5,
          eAuthentcationFailed = 6
          
              
      Specified by:
      setConnectionStatus in interface PPPoeClient
      Parameters:
      status - Takes in a parameter of status
    • getUsername

      public String getUsername()
      Information provided by the PKI file:
      
          \brief Gets the username.
          
          \return string, the username.
          
              
      Specified by:
      getUsername in interface PPPoeClient
      Returns:
      String Returns a String
    • setPassword

      public void setPassword(String password)
      Information provided by the PKI file:
      
          \brief Sets the password.
          
          \param password, the password.
          
              
      Specified by:
      setPassword in interface PPPoeClient
      Parameters:
      password - Takes in a parameter of password
    • getPassword

      public String getPassword()
      Information provided by the PKI file:
      
          \brief Gets the password.
          
          \return, the password.
          
              
      Specified by:
      getPassword in interface PPPoeClient
      Returns:
      String Returns a String
    • setServiceName

      public void setServiceName(String service)
      Information provided by the PKI file:
      
          \brief Sets the service name.
          
          \param service, the service name to use.
          
              
      Specified by:
      setServiceName in interface PPPoeClient
      Parameters:
      service - Takes in a parameter of service
    • getServiceName

      public String getServiceName()
      Information provided by the PKI file:
      
          \brief Gets the service name.
          
          \return string, the service name to use.
          
              
      Specified by:
      getServiceName in interface PPPoeClient
      Returns:
      String Returns a String
    • connect

      public void connect(String userName, String password)
      Information provided by the PKI file:
      
          \brief Makes a PPPoE connection with the specified username and password.
          
          \param userName, the username.
          \param password, the password.
          
              
      Specified by:
      connect in interface PPPoeClient
      Parameters:
      userName - Takes in a parameter of userName
      password - Takes in a parameter of password
    • connectFromPc

      public void connectFromPc(String userName, String password)
      Specified by:
      connectFromPc in interface PPPoeClient
      Parameters:
      userName - Takes in a parameter of userName
      password - Takes in a parameter of password
    • disconnectFromPc

      public void disconnectFromPc()
      Specified by:
      disconnectFromPc in interface PPPoeClient
    • disconnect

      public void disconnect(int sessionId, PPPoeConnectionStatus status, boolean sendTerminalFlag)
      Information provided by the PKI file:
      
          \brief Disconnects the PPPoE connection.
          enum EPppoeConnectionStatus
          {
          eConnected = 0,
          eConnecting = 1,
          ePoolRejected = 2,
          eDisconnected = 3,
          eTimeout = 4,
          eNoKeepAlive = 5,
          eAuthentcationFailed = 6
          };
          
              
      Specified by:
      disconnect in interface PPPoeClient
      Parameters:
      sessionId - Takes in a parameter of sessionId
      status - Takes in a parameter of status
      sendTerminalFlag - Takes in a parameter of sendTerminalFlag
    • isConnected

      public boolean isConnected()
      Information provided by the PKI file:
      
          \brief Checks if it is connected.
          
          \return bool, true if connected, false if not.
          
              
      Specified by:
      isConnected in interface PPPoeClient
      Returns:
      boolean Returns a boolean
    • setConnected

      public void setConnected(boolean flag)
      Information provided by the PKI file:
      
          \brief Set if it is connected.
          
          \param flag, true if connected, false if not.
          
              
      Specified by:
      setConnected in interface PPPoeClient
      Parameters:
      flag - Takes in a parameter of flag
    • getConnectionStatus

      public PPPoeConnectionStatus getConnectionStatus()
      Information provided by the PKI file:
      
          \brief Gets the connection status.
          
          \return PppoeConnectionStatus types: eConnected = 0,
          eConnecting = 1,
          ePoolRejected = 2,
          eDisconnected = 3,
          eTimeout = 4,
          eNoKeepAlive = 5,
          eAuthentcationFailed = 6
          
              
      Specified by:
      getConnectionStatus in interface PPPoeClient
      Returns:
      PPPoeConnectionStatus Returns a PPPoeConnectionStatus